<div id="central" class="warp">
  {include file="index/menu"}
  <div id="main" class="friends">
    <div id="header">
      <div class="title">
        <h1>我的收藏</h1>
      </div>
      <div class="return"><a href="{$url(member/index/index)}">中心首页</a></div>
      <div class="fn-clear"></div>
    </div>
    <div id="tab" class="tabs">
      <ul>
        <li><a class="selected"  href="#">添加收藏</a></li>
        <li><a href="{$url(collection/index)}">返回收藏</a></li>
      </ul>
      <div class="menu"> </div>
      <div class="fn-clear"></div>
    </div>
    <div class="form">
    <form action="{$url(collection/add_data)}" method="post" id="form">
    	<ul>
       	  <li><label>收藏内容：</label> {$info.title}</li>
          <li><label>备注：</label>  <input name="remark" type="text" class="text"  id="remark" value="{$info.title}" style="width:400px;" ></li>
          <input name="aid" type="hidden" value="{$info.aid}" />
          <li><label></label> <button class="button" type="submit">确认收藏</button><span id="tip" class="load"></li>
        </ul>
    </form>
    </div>
    <div class="fn-clear"></div>
  </div>
  
  <div class="fn-clear"></div>
</div>
<script>
Do.ready('userbase','form','dialog', function() {
	saveform(function(){
		$('#tip').text('收藏本产品成功！');
		window.setTimeout(function(){ 
			window.location.href="<?php echo url('collection/index') ?>";
		},3000);
	});
});
</script> 